home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / overview / dtscpluslibrary / resources / spincursor.r < prev   
Encoding:
Text File  |  2000-06-23  |  3.3 KB  |  120 lines

  1. /*
  2.     File:        SpinCursor.r
  3.  
  4.     Contains:    TSpinCursor is a simple cursor spinning class.
  5.                   SpinCursort.r contains the  ACUR and CURS resources needed for the TSpinCursor test functions.
  6.                  Add these resources to the test framework using something similar as:
  7.                   Rez -rd -o TargetApplication SpinCursor.r -append
  8.  
  9.     Written by: Kent Sandvik    
  10.  
  11.     Copyright:    Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved.
  12.  
  13.                 You may incorporate this Apple sample source code into your program(s) without
  14.                 restriction. This Apple sample source code has been provided "AS IS" and the
  15.                 responsibility for its operation is yours. You are not permitted to redistribute
  16.                 this Apple sample source code as "Apple sample source code" after having made
  17.                 changes. If you're going to re-distribute the source, we require that you make
  18.                 it clear in the source that the code was descended from Apple sample source
  19.                 code, but that you've made changes.
  20.  
  21.     Change History (most recent first):
  22.                 8/18/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  23.                 
  24.  
  25. */
  26. // INCLUDES
  27. #include "SysTypes.r"
  28. #include "Types.r"
  29. #include "ApplicationResources.h"
  30.  
  31.  
  32. // 'CURS' Resource (our watch (see Finder))
  33. resource 'CURS' (6500, locked, preload) {
  34.     $"3F00 3F00 3F00 3F00 4080 8040 8140 8260"
  35.     $"9C60 8040 8040 4080 3F00 3F00 3F00 3F",
  36.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  37.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  38.     {8, 8}
  39. };
  40.  
  41. resource 'CURS' (6501, locked, preload) {
  42.     $"3F00 3F00 3F00 3F00 4080 8040 8040 8060"
  43.     $"9F60 8040 8040 4080 3F00 3F00 3F00 3F",
  44.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  45.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  46.     {8, 8}
  47. };
  48.  
  49. resource 'CURS' (6502, locked, preload) {
  50.     $"3F00 3F00 3F00 3F00 4080 8040 8040 8060"
  51.     $"9C60 8240 8040 4080 3F00 3F00 3F00 3F",
  52.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  53.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  54.     {8, 8}
  55. };
  56.  
  57. resource 'CURS' (6503, locked, preload) {
  58.     $"3F00 3F00 3F00 3F00 4080 8040 8040 8060"
  59.     $"9C60 8440 8440 4080 3F00 3F00 3F00 3F",
  60.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  61.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  62.     {8, 8}
  63. };
  64.  
  65. resource 'CURS' (6504, locked, preload) {
  66.     $"3F00 3F00 3F00 3F00 4080 8040 8040 8060"
  67.     $"9C60 8840 9040 4080 3F00 3F00 3F00 3F",
  68.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  69.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  70.     {8, 8}
  71. };
  72.  
  73. resource 'CURS' (6505, locked, preload) {
  74.     $"3F00 3F00 3F00 3F00 4080 8040 8040 8060"
  75.     $"BC60 8040 8040 4080 3F00 3F00 3F00 3F",
  76.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  77.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  78.     {8, 8}
  79. };
  80.  
  81. resource 'CURS' (6506, locked, preload) {
  82.     $"3F00 3F00 3F00 3F00 4080 8040 9040 8860"
  83.     $"9C60 8040 8040 4080 3F00 3F00 3F00 3F",
  84.     $"3F00 3F00 3F00 3F00 7F80 FFC0 FFC0 FFC0"
  85.     $"FFC0 FFC0 FFC0 7F80 3F00 3F00 3F00 3F",
  86.     {8, 8}
  87. };
  88.  
  89.  
  90. // The main 'acur', defined as the kWatchID constant in the program.
  91. resource 'acur' (6500, locked, preload) {
  92.     {    /* array CursIdArray: 8 elements */
  93.         /* [1] */
  94.         4,
  95.         /* [2] */
  96.         6500,
  97.         /* [3] */
  98.         6501,
  99.         /* [4] */
  100.         6502,
  101.         /* [5] */
  102.         6503,
  103.         /* [6] */
  104.         6504,
  105.         /* [7] */
  106.         6505,
  107.         /* [8] */
  108.         6506
  109.     }
  110. };
  111.  
  112.  
  113. // _________________________________________________________________________________________________________ //
  114.  
  115. /*    Change History (most recent last):
  116.   No        Init.    Date        Comment
  117.   1            khs        12/14/92    New file
  118.   2            khs        1/3/93        Cleanup
  119. */
  120.